package cookie.library.random;

import com.rsbuddy.script.ActiveScript;
import com.rsbuddy.script.task.LoopTask;
import cookie.library.random.randoms.PinManager;

/**
 * @autor Sir Cookie
 */
public class Manager extends LoopTask {
    private ActiveScript script;

    public Manager(ActiveScript script){
        this.script = script;
    }

    private Random[] randoms = {
            new PinManager()
    };

    public int loop() {
        for(Random r : randoms){
            if(r.activate()){
                r.run(script);
            }
        }
        return 0;
    }
}
